<?php

namespace app\common\enum;

use MyCLabs\Enum\Enum;

class CommEnum extends Enum
{
    // 百分比奖励
    const AWARD_RATE = 10;

    // 固定金额奖励
    const AWARD_MONEY = 20;

    public static function data()
    {
        return [
            self::AWARD_RATE => [
                'name' => '百分比奖励',
                'value' => self::AWARD_RATE,
            ],
            self::AWARD_MONEY => [
                'name' => '固定金额奖励',
                'value' => self::AWARD_MONEY,
            ],
        ];
    }

}